package org.lagou.tools;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Tools {

	static Scanner input = new Scanner(System.in);

	public static void p(String a) {
		System.out.print(a);
	}

	public static void pl(String a) {
		System.out.println(a);
	}

	public static String getString(String a) {
		p(a);
		return input.next();
	}

	public static int getInt(String a) {
		p(a);
		return input.nextInt();
	}

	 //获取当前时间
	public static String getNowDate() {
		Date d = new Date();
		SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String date=dateFormat.format(d);
		return date;
	}
}
